package com.itheima.health.mpconfig;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MPConfig {
@Bean
    public PaginationInterceptor createPaginationInterceptor(){
    return new PaginationInterceptor();//mp 分页查询对象  配置到ioc容器中
}

}
